import requests
import  time

def req(url):
    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"
    }
    r = requests.get(url, timeout=10, headers=headers)
    if r.status_code == 200:
        return True
    else:
        return False

if __name__ == '__main__':
    i = 1;
    while i < 100:
        isC = req('http://www.imxingzhe.com/topic/105825/')
        if isC:
            print(i , 'ok')
            time.sleep(1)
        i = i + 1